Apple II
Sample Code Notes
_____________________________________________________________________________
                                                  Developer Technical Support


#4:    Custom.Control

Version:    2.0                                                September 1988

APW Components:    BoxCtrl.Src                    18 Aug 88
                   BoxCtrl.Std.Src                18 Aug 88
                   DefProc.1.Src                  18 Aug 88
                   DefProc.2.Src                  18 Aug 88
                   BoxCtrl.Macros                 30 Aug 88
                   BoxCtrl                        30 Aug 88

MPW Components:    BoxCtrl.Aii                    01 Sep 88
                   BoxCtrl.DefProc.Aii            01 Sep 88
                   BoxCtrl.Stds.Aii               09 Jul 88
                   Makefile                       08 Jun 88

This sample program addresses the art of creating and supporting custom 
controls.  BoxCtrl generates a rectangle with small marks at each midpoint and 
corner.  Clicking and dragging the mouse when the cursor is over a mark causes 
the rectangle to shrink, grow, and move.
_____________________________________________________________________________

The 65816 assembly language source code shows how to define both a custom 
control and a simple button control, and how to use the custom control to move 
and resize the button control.  The demo was written in response to a number 
of developer requests for more information on how to support custom controls.

Use APW 1.0 and Apple IIGS System Disk 3.2 or later to execute the BoxCtrl 
file included with the APW-compatible source code files.  To create a load 
file under APW, issue the following command:  ASML BoxCtrl.Src Keep=BoxCtrl.

MPW IIGS users need MPW 2.02, MPW IIGS Tools 1.0, and any version of the MPW 
IIGS assembler.  The program name needed by the MPW Build menu's Build option 
is BoxCtrl.

